import { defHttp } from "@/utils/http";

// ERP 库存盘点 API
export const invtDeptMcheckApi = {
	// 获得库存盘点分页
	invtDeptMcheckList: async (params: any) => {
		return await defHttp.get({ url: `/whs/invt-dept-mcheck/page`, params });
	},
	// 新增库存盘点
	invtDeptMcheckCreate: async (data: any) => {
		return await defHttp.post({ url: `/whs/invt-dept-mcheck/create`, data });
	},

	// 修改库存盘点
	invtDeptMcheckUpdate: async (data: any) => {
		return await defHttp.put({ url: `/whs/invt-dept-mcheck/update`, data });
	},

	// 删除库存盘点
	invtDeptMcheckDelete: async (id: number) => {
		return await defHttp.delete({ url: `/whs/invt-dept-mcheck/delete?id=` + id });
	}
};
